import request from '@/utils/request'

// 查询每日监测信息列表
export function listDailyMonitoring(query) {
  return request({
    url: '/information/dailyMonitoring/list',
    method: 'get',
    params: query
  })
}

// 查询每日监测信息详细
export function getDailyMonitoring(id) {
  return request({
    url: '/information/dailyMonitoring/' + id,
    method: 'get'
  })
}

// 新增每日监测信息
export function addDailyMonitoring(data) {
  return request({
    url: '/information/dailyMonitoring',
    method: 'post',
    data: data
  })
}

// 修改每日监测信息
export function updateDailyMonitoring(data) {
  return request({
    url: '/information/dailyMonitoring',
    method: 'put',
    data: data
  })
}

// 删除每日监测信息
export function delDailyMonitoring(id) {
  return request({
    url: '/information/dailyMonitoring/' + id,
    method: 'delete'
  })
}

// 导出每日监测信息
export function exportAllDailyMonitoring(query) {
  return request({
    url: '/information/dailyMonitoring/export',
    method: 'get',
    params: query
  })
}

// 导出信息管理
export function exportDailyMonitoring(ids) {
  return request({
    url: '/information/dailyMonitoring/export',
    method: 'post',
    data: ids.join(",")
  })
}
